<?php

class openapi_api_params_v1_token extends openapi_api_params_abstract implements openapi_api_params_interface {

    public function checkParams($method, $params, &$sub_msg, $defined_params = array(), $dataType = 'kv') {
        if (parent::checkParams($method, $params, $sub_msg, $defined_params, $dataType)) {
            return true;
        } else {
            return false;
        }
    }

    public function getAppParams($method) {
        $params = array(
            'get' => array(
                'test' => array(
                    'type' => 'string',
                    'name' => '操作'
                )
            )
        );
        
        return $params[$method];
    }

    public function description($method) {
        $desccription = array(
            'get' => array(
                'name' => '获取交互的token',
                'description' => '获取交互的token'
            )
        );
        return $desccription[$method];
    }
}